<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>Token Test</title>
  </head>
  <body>
  		<form action="<%=basePath %>tokenAction!add.action" method="post">
  			请输入短信内容: <input type="text" name="msg" id="msg"/><br/>
  			<input  type="submit" value="提交" /> 
  			<s:token name="mytoken"></s:token>
  		</form>
  </body>
</html>
